package gold.digger;

/**
 * Created by fanzhenyu02 on 2020/6/27.
 * common problem solver template.
 */
public class LC201 {
    public long startExecuteTime = System.currentTimeMillis();


    class Solution {
        public int rangeBitwiseAnd(int m, int n) {
            while (m < n) n = n & (n - 1);
            return n;
        }
    }

    public void run() {
        Solution solution = new Solution();
        System.out.println(solution.rangeBitwiseAnd(5,7));
    }

    public static void main(String[] args) throws Exception {
        LC201 an = new LC201();
        an.run();

        System.out.println("\ncurrent solution total execute time: " + (System.currentTimeMillis() - an.startExecuteTime) + " ms.");
    }
}
